package com.example.security.exceptions;

import com.example.security.common.ResultCode;

/**
 * 自定义异常：用户不可用
 * <p>
 * Created by devinlee in 2022.09.09
 */
public class UnavailableException extends RuntimeException {

    public UnavailableException() {
        super(ResultCode.UNAVAILABLE.getMessage());
    }

    public UnavailableException(String message) {
        super(message);
    }

    public UnavailableException(String message, Throwable cause) {
        super(message, cause);
    }

    public UnavailableException(Throwable cause) {
        super(cause);
    }

    public UnavailableException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
